<?php
namespace app\cms\controller;

use think\Controller;

class AdminBase extends Controller
{
    protected function _initialize()
    {
        $this->init();
    }
    private function init()
    {
        if (session("cms") == null) {
            $this->redirect('Member/login');
        }
        $this->cms = session("cms");
        $this->assign("url",request()->url());
        $this->assign("cms",$this->cms);
    }
}
